<template>
  <div class="address">
    <van-address-edit
      :area-list="areaList"
      show-postal
      show-delete
      show-set-default
      show-search-result
      :area-columns-placeholder="['请选择', '请选择', '请选择']"
      @save="onSave"
    />
  </div>
</template>

<script>
import { areaList } from "@vant/area-data";
export default {
  data() {
    return {
      areaList,
    };
  },
  created() {},
  methods: {
    onSave(val) {
      // 点击保存触发的事件
      // provincecode 410000
      // citycode 411600
      // countycode 411628
      console.log(val);
    },
  },
  components: {},
};
</script>

<style lang="scss" scoped>
.address {
  height: 100%;
}
</style>
